package net.util;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class FileUtil
{
	private FileUtil()
	{
		
	}
	
	public static final String IMAGE_FILE_PATH = "net/resources/images/";
	
	public static void writeObject(Serializable o, String fname) throws IOException
	{
		ObjectOutputStream ostream = new ObjectOutputStream(new FileOutputStream(fname));
		
		ostream.writeObject(o);
		
		ostream.close();
	}
}
